/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hpvas_h;
import Entities.*;
import Controllers.*;
import java.util.*;
import javax.persistence.*;
import java.util.Date;
import javax.swing.JOptionPane;
/**
 *
 * @author Heinz Hernandez
 */
public class HPVAS_H {

    public HPVAS_H() {
    }

    /**
     * @param args the command line arguments
     */
    
    
//    public static void main(String[] args) {
//        // TODO code application logic here
//        EntityManagerFactory emFactory = Persistence.createEntityManagerFactory("HPVAS_HPU");
//        EntityManager em = emFactory.createEntityManager();
//        
//        PersonJpaController perCtrl = new PersonJpaController(emFactory);
//        
//        Person p1 = new Person();
//        Date p1date;
//        p1date = new Date(2008, 3, 15);
//        
//        p1.setPerName("CARLOS");
//        p1.setPerLastName("PEREZ");
//        p1.setPerSsn("rtrstt");
//        p1.setPerBirthDate(p1date);
//        p1.setPerBirthPlace("Pasto");
//        
//        perCtrl.create(p1);
//        
//        
//        List<Person> listPersons = perCtrl.findPersonEntities();
//        for (Person persons : listPersons) {
//            System.out.println("ID: " + persons.getPerId());
//            System.out.println("Nombre: " + persons.getPerName());
//            System.out.println("---------------------------------------");
//        }
//        
//        
//    }
}
